<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class C_Main extends MY_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model('Users_Model');
        $this->load->model('System_Model');
        $this->load->model('Customers_Model');
    }

    //主页初始页
    public function index() {
        $data['title'] = $this->System_Model->get_system('login_title');
        $data['maturity'] = $this->Customers_Model->GetListForMan(TRUE);
        $data['anniversary'] = $this->Customers_Model->GetListForAnniversary(TRUE);
        $data['new'] = $this->Customers_Model->GetListForNew(TRUE);
        $this->load->view('layout/header', $data);
        $this->load->view('layout/menu');
        $this->load->view('main_view', $data);
        $this->load->view('layout/footer');
    }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */